#include<iostream>
#include<vector>
using namespace std;

bool searchVal(vector<int>::iterator beg, vector<int>::iterator end,int val){
	while(beg !=end){
		if(*beg ==val){
			return 1;
		}
	}
	return 0;
}
int main(){
	vector<int> aList = { 1, 3, 5, 7, 9, 10};
	cout<< seachVal(aList.begin()), aList.end(),10)<<endl;
